﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace UpdateProject
{
    [System.Diagnostics.DebuggerDisplay("FrameworkAssembly: {AssemblyName}")]
    public class FrameworkAssembly
    {
        public string AssemblyName { get; set; }
        public string FullPath { get; set; }
        public bool SpecificVersion { get; set; }
        public string HintPath { get; set; }
    }

    [System.Diagnostics.DebuggerDisplay("Reference: {Reference}, FrameworkAssembly: {AssemblyName}")]
    public class Reference_FrameworkAssembly
    {
        public XElement Reference { get; set; }
        public FrameworkAssembly Assembly { get; set; }
    }

    public class Reference_FrameworkAssemblyComparer : IEqualityComparer<Reference_FrameworkAssembly>
    {
        public bool Equals(Reference_FrameworkAssembly x, Reference_FrameworkAssembly y)
        {
            return x.Reference == y.Reference;
        }

        public int GetHashCode(Reference_FrameworkAssembly obj)
        {
            return obj.Reference.GetHashCode();
        }
    }
}
